package org.jet.common.config;


import lombok.Data;
import org.jet.common.comp.PathGenerator;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;


@ConfigurationProperties(prefix = "file.upload")
@Data
public class JetFileUploadConfig {

    private String savePath;
    private String imageServer;


    @Bean
    public PathGenerator pathGenerator(){
        return new PathGenerator();
    }

}
